package file;

import java.io.File;

/**
 * Creared with IntelliJ IDEA.
 * Description:
 * User:yxd
 * Date:2022-04-05
 * Time:18:26
 */
public class Demo2 {
    public static void main(String[] args) {
        File f = new File("E:/NEW/test.txt");
        System.out.println(f.exists());//是否存在
        System.out.println(f.isDirectory());//是否是目录
        System.out.println(f.isFile());//是否是文件

    }
}
